<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition> 
    
<h:form>		

           <h:outputLabel for="email" value="Introduzca su email: "  />  
                            <p:inputText id="email" value="aaa" size="30" validatorMessage="Debe ser un email válido"  maxlength="255" label="Email" required="true" >  
                                <p:watermark for="email" value="Ex: usuario@dominio.com"/>
                                <f:validateRegex pattern="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$" />
                                <p:ajax update="msgEmail" event="keyup" />
                            </p:inputText>  
                            <p:message for="email" id="msgEmail" display="icon"/>  
</h:form>
    
                    	
</ui:composition>
</html>